package routers

import (
	"api/internal/handler"
	"github.com/gin-gonic/gin"
)

func Router(r *gin.Engine) {

	r.POST("/create/order", handler.CreateOrder)

	r.GET("/order/list", handler.OrderList)

	r.GET("/rider/list", handler.RiderOrderList)

	r.GET("/user/list", handler.UserOrderList)

	r.GET("/merchant/order", handler.MerchantOrder)

	r.GET("/rank", handler.Rank)

	r.GET("/merchant/list", handler.MerchantList)

	r.POST("/create/appointment", handler.CreateAppointment)

	r.GET("/appointment/list", handler.AppointmentList)

	r.POST("/appointment/update", handler.AppointmentUpdate)

	r.POST("/comment/add", handler.CommentAdd)

	r.GET("/comment/list", handler.CommentList)

	r.GET("/goods/list", handler.GoodsList)

	r.GET("/address/list", handler.AddressList)

	r.GET("/operate/list", handler.OperateList)

}
